package com.tbit.uqbike.annos;

import java.lang.annotation.*;

/**
 * 降级
 * 缓存接口执行结果指定时间
 * @author <a href="mailto:zhang.zhiliang@tbit.com.cn">Zhang ZhiLiang</a>
 * @version 1.0
 * @see <a href="http://adsl1.tbit.com.cn:21490/pages/viewpage.action?pageId=82182491">订单号规范</a>
 * @since 2025/3/11
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
public @interface CurrentLimit {

    /**
     * 结果缓存时间
     * @return
     */
    long cacheTime() default 300L;
    long currentCapacity() default 100L;

}
